package struts.bisness;

import java.util.Iterator;
import java.util.Map;
import java.util.Set;

import javax.servlet.http.HttpServletRequest;

import struts.action.Action;
import struts.from.ActionForm;
import struts.service.MessageVo;
import struts.service.myService.panduan.panduanservice;
import struts.service.myService.panduan.panduanserviceImp;

public class panduanAction implements Action {

	@Override
	public String execute(HttpServletRequest request, ActionForm form,
			Map<String, String> actionForward) {
		String url = "";
		panduanservice service = new panduanserviceImp();
		Map<String,MessageVo> map =service.getvo(request.getParameter("text"));
		Set<String> set = map.keySet();
		for(Iterator<String> it = set.iterator();it.hasNext();){
			url = it.next();
			request.setAttribute("mess", map.get(url));
		}
		return url;
	}

	
	
	
}
